<template>
    <div v-if="storedUser.role === '0'">
        <userIndex />
    </div>
    <div v-else>
        <adminIndex />
    </div>
</template>

<script setup>
import userIndex from '../index/userIndex.vue';
import adminIndex from '../index/adminIndex.vue';

const storedUser = JSON.parse(localStorage.getItem('loggedInUser'))

</script>

<style></style>